<script setup lang="ts">
import { ElMessage } from 'element-plus'
import useUserStore from '@/store/modules/user'

const userStore = useUserStore()

onMounted(() => {
  if (userStore.isLogin === false) {
    ElMessage.error('请先登录')
    userStore.logout()
  }
})
</script>

<template>
  <div class="box" />
</template>

<style lang="scss" scoped>
.box {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: url("/src/assets/images/20240712-190315.jpg") no-repeat;
  background-position: 212px 30px;
  background-size: 90% auto;
}
</style>
